QT       += core gui network concurrent sql printsupport xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
CONFIG -= debug_and_release


# 应用程序基本信息
TARGET = EMCCustom
TEMPLATE = app
VERSION = 1.0.12

# 只定义版本号（安全，无空格）
DEFINES += APP_VERSION=\\\"$$VERSION\\\"

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

win32-msvc {
    QMAKE_CXXFLAGS += /utf-8
    QMAKE_CFLAGS += /utf-8
}

win32-g++ {
    QMAKE_CXXFLAGS += -finput-charset=UTF-8 -fexec-charset=UTF-8
}

# DEFINES += TEST_DEBUG
# (无设备测试空跑，正向功率计设置30dBm,反向 0，无其它参数时，干扰电平为22.3)


# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

include(./3rdparty/qcustomplot/qcustomplot.pri)
SOURCES += \
    3rdparty/reportoutput/reportoutput.cpp \
    common/calcutils.cpp \
    common/loghandler.cpp \
    model/conductedtestflowsession.cpp \
    model/databasemanager.cpp \
    model/datamanager.cpp \
    model/deviceinstancemanager.cpp \
    model/itestflow.cpp \
    model/levelscanningflowsession.cpp \
    model/libraryfactory.cpp \
    model/radiatedtestflowsession.cpp \
    model/temperaturehumiditysensor.cpp \
    model/testplanbuilder.cpp \
    model/testrunner.cpp \
    widgets/HardwareSetup/connectingwindow.cpp \
    widgets/HardwareSetup/hardwareeditorpresenter.cpp \
    widgets/HardwareSetup/hardwarewidget.cpp \
    widgets/HardwareSetup/nodewidget.cpp \
    widgets/HardwareSetup/specificattrpaneladapter.cpp \
    widgets/HardwareSetup/attributepaneladapter.cpp \
    widgets/TableManager/parameterbrowserwidget.cpp \
    widgets/TableManager/parametertablemodel.cpp \
    widgets/TableManager/parametertreemodel.cpp \
    widgets/TestInterface/testwidget.cpp \
    common/common.cpp \
    common/config_manager.cpp \
    main.cpp \
    mainwindow.cpp \
    widgets/TestTemplate/subbandtablemodel.cpp \
    widgets/TestTemplate/testtemplatewidget.cpp \

HEADERS += \
    3rdparty/reportoutput/reportoutput.h \
    3rdparty/reportoutput/reportoutput_global.h \
    common/calcutils.h \
    common/loghandler.h \
    model/conductedtestflowsession.h \
    model/databasemanager.h \
    model/datamanager.h \
    common/datatypes.h \
    common/deviceattributes.h \
    model/deviceinstancemanager.h \
    model/itestflow.h \
    model/levelscanningflowsession.h \
    model/libraryfactory.h \
    model/radiatedtestflowsession.h \
    model/temperaturehumiditysensor.h \
    model/testplanbuilder.h \
    model/testrunner.h \
    widgets/HardwareSetup/connectingwindow.h \
    widgets/HardwareSetup/hardwareeditorpresenter.h \
    widgets/HardwareSetup/hardwarewidget.h \
    widgets/HardwareSetup/nodewidget.h \
    widgets/HardwareSetup/specificattrpaneladapter.h \
    widgets/HardwareSetup/attributepaneladapter.h \
    widgets/TableManager/parameterbrowserwidget.h \
    widgets/TableManager/parametertablemodel.h \
    widgets/TableManager/parametertreemodel.h \
    widgets/TestInterface/testwidget.h\
    common/common.h \
    common/config_manager.h \
    mainwindow.h \
    widgets/TestTemplate/subbandtablemodel.h \
    widgets/TestTemplate/testtemplatewidget.h \

FORMS += \
    widgets/TableManager/parameterbrowserwidget.ui \
    widgets/TestInterface/testwidget.ui \
    mainwindow.ui \
    widgets/HardwareSetup/hardwarewidget.ui \
    widgets/TestTemplate/testtemplatewidget.ui \


RESOURCES += \
    qrc/qss.qrc


RC_ICONS=./qrc/emcicon.ico

TRANSLATIONS += \
    qrc/translate/ch.ts \
    qrc/translate/en.ts


